package com.purchase.ml.bean.base;

/**
 * Created by kyyang on 2021/1/10 17:35
 */

public class PageDto {

    private int pageNum = 10;

    private int pageIndex = 1;

    private int start;

    private int end;

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public int getStart() {
        return (this.pageIndex-1)*this.pageNum;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public int getEnd() {
        return this.pageNum;
    }

    public void setEnd(int end) {
        this.end = end;
    }
}
